package blJunitTest;

import static org.junit.Assert.*;

import java.rmi.RemoteException;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import po.CourseInfoPO;

import bl.CourseBLServiceImpl;
import bl.EditCourseBLImpl;

public class EditCourseBLImplTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}


	@Test
	public void testGetCourseInfo() {
//		fail("Not yet implemented");
		CourseInfoPO courseInfoPO = new CourseInfoPO();
		int courseID = 1;
		try {
			assertEquals(new EditCourseBLImpl().getCourseInfo(courseID), courseInfoPO);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
